﻿/*  
	========================================================================
	 awzBoxes Library
	
	 Homepage: http://www.awzhome.de/
	========================================================================
	
	This Source Code Form is subject to the terms of the Mozilla Public
	License, v. 2.0. If a copy of the MPL was not distributed with this
	file, You can obtain one at http://mozilla.org/MPL/2.0/.
   
	The Original Code is code of awzBoxes Library.

	The Initial Developer of the Original Code is Andreas Weizel.
	Portions created by the Initial Developer are
	Copyright (C) 2011-2012 Andreas Weizel. All Rights Reserved.
	
	Contributor(s): (none)
	
	========================================================================
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AWZhome.awzBoxes
{
	/// <summary>
	/// Argument class for <see cref="AWZhome.awzBoxes.BoxItem.DirectionChanged"/> event.
	/// </summary>
	public class DirectionChangedEventArgs : EventArgs
	{
		/// <summary>
		/// Creates a new instance of the class.
		/// </summary>
		/// <param name="oldDirection">Old direction value.</param>
		/// <param name="newDirection">New direction value.</param>
		public DirectionChangedEventArgs(BoxItemDockDirection oldDirection, BoxItemDockDirection newDirection)
		{
			this.OldDirection = oldDirection;
			this.NewDirection = newDirection;
		}

		/// <summary>
		/// Returns the old direction value.
		/// </summary>
		public BoxItemDockDirection OldDirection
		{
			get;
			private set;
		}

		/// <summary>
		/// Returns the new direction value.
		/// </summary>
		public BoxItemDockDirection NewDirection
		{
			get;
			private set;
		}
	}
}
